package com.xh.bussiness.system.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xh.core.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 公立校
 * </p>
 *
 * @author daiwei
 * @since 2019-02-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_public_school")
public class PublicSchool extends SuperEntity {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "名称不能为空")
    private String name;

    @NotNull(message = "省份不能为空")
    private String provinceId;

    private String provinceName;

    @NotNull(message = "市区不能为空")
    private String cityId;

    private String cityName;

    @NotNull(message = "区域不能为空")
    private String areaId;

    private String  areaName;

    private Integer status;

}
